package jp.co.systemi.asp.utils;

import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;

public class DModalWindow extends ModalWindow {
    public DModalWindow(String id) {
        super(id);
    }

    private static final long serialVersionUID = -3946757410146310057L;
    private ModalWindow.WindowClosedCallback okActionCallback;
    private ModalWindow.WindowClosedCallback cancelActionCallback;
    private Object retValue;

    public ModalWindow.WindowClosedCallback getOKActionCallback() {
        return okActionCallback;
    }

    public ModalWindow.WindowClosedCallback getCancelActionCallback() {
        return cancelActionCallback;
    }

    public void setOKActionCallback(ModalWindow.WindowClosedCallback callback) {
        this.okActionCallback = callback;
    }

    public void setCancelActionCallback(
            ModalWindow.WindowClosedCallback callback) {
        this.cancelActionCallback = callback;
    }

    public Object getRetValue() {
        return retValue;
    }

    public void setRetValue(Object retValue) {
        this.retValue = retValue;
    }
}
